<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>glib2</Name>
        <Homepage>http://www.gtk.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <Summary>A library of handy utility functions</Summary>
        <Description>glib2 is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.</Description>
        <Archive sha1sum="948a768931ca321a35e16556a1c8adcae04babf2" type="tarxz">mirrors://gnome/glib/2.50/glib-2.50.2.tar.xz</Archive>
        <BuildDependencies>
            <Dependency versionFrom="8.36">libpcre-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libffi-devel</Dependency>
            <!--<Dependency>libxslt</Dependency>-->
            <!--<Dependency versionFrom="0.161">elfutils</Dependency>-->
            <!--<Dependency>docbook-xml</Dependency>-->
        </BuildDependencies>
        <Patches>
            <Patch level="1">revert-warn-glib-compile-schemas.patch</Patch>
            <Patch level="1">0001-glib-compile-resources-Add-generate-phony-targets-fl.patch</Patch>
            <Patch>0001-glib-compile-resources-Escape-file-names-in-dependen.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>glib2</Name>
        <RuntimeDependencies>
            <Dependency>libpcre</Dependency>
            <Dependency>zlib</Dependency>
            <!--<Dependency>elfutils</Dependency>-->
            <Dependency>libffi</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/etc/profile.d</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/share/bash-completion/completions/</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/glib-2.0</Path>
            <Path fileType="data">/usr/share/systemtap</Path>
            <Path fileType="data">/usr/share/glib-2.0/schemas</Path>
            <Path fileType="data">/usr/share/gettext</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/profile.d/glib2.sh">glib2.sh</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/profile.d/glib2.csh">glib2.csh</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="pakhandler.py">System.PackageHandler</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>glib2-devel</Name>
        <PartOf>system.devel</PartOf>
        <Summary>Development files for glib2</Summary>
        <RuntimeDependencies>
            <Dependency release="current">glib2</Dependency>
            <Dependency>libpcre-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/gtester</Path>
            <Path fileType="executable">/usr/bin/gtester-report</Path>
            <Path fileType="executable">/usr/bin/gobject-query</Path>
            <Path fileType="executable">/usr/bin/glib-genmarshal</Path>
            <Path fileType="executable">/usr/bin/glib-gettextize</Path>
            <Path fileType="executable">/usr/bin/glib-mkenums</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="header">/usr/lib/glib-2.0/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="data">/usr/share/glib-2.0/schemas/gschema.dtd</Path>
            <Path fileType="data">/usr/share/glib-2.0/gettext</Path>
            <Path fileType="data">/usr/share/glib-2.0/gdb</Path>
            <Path fileType="data">/usr/share/gdb/auto-load/libglib-2.0.so.*-gdb.py*</Path>
            <Path fileType="data">/usr/share/gdb/auto-load/libgobject-2.0.so.*-gdb.py*</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="man">/usr/share/man/man1/glib-genmarshal.1</Path>
            <Path fileType="man">/usr/share/man/man1/glib-gettextize.1</Path>
            <Path fileType="man">/usr/share/man/man1/glib-mkenums.1</Path>
            <Path fileType="man">/usr/share/man/man1/gobject-query.1</Path>
            <Path fileType="man">/usr/share/man/man1/gtester-report.1</Path>
            <Path fileType="man">/usr/share/man/man1/gtester.1</Path>
        </Files>
    </Package>

    <Package>
        <Name>glib2-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for glib2</Summary>
        <BuildType>_emul32</BuildType>
        <BuildDependencies>
            <Dependency>libpcre-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libffi-32bit</Dependency>
            <Dependency>dbus-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">glib2</Dependency>
            <Dependency>libpcre-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libffi-32bit</Dependency>
            <Dependency>dbus-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/32</Path>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
        <Provides>
            <COMAR script="pakhandler32.py">System.PackageHandler</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>glib2-docs</Name>
        <Summary>Documentation files for glib2</Summary>
        <Description>Extensive documentation for developers wanting to use the GLib Library</Description>
        <Files>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-03-02</Date>
            <Version>2.50.2</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-08</Date>
            <Version>2.50.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>2.46.2</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-10</Date>
            <Version>2.46.2</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
